home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1320 / 1320.xpi / defaults / transforms / prefs-0.5.xsl < prev   
Extensible Markup Language  |  2010-01-22  |  866b  |  35 lines

  1. <?xml version="1.0"?>
  2.  
  3. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4.     version="1.0">
  5.     
  6.     <xsl:template match="/">
  7.         <xsl:apply-templates/>
  8.     </xsl:template>
  9.     
  10.     <xsl:template match="gmanager">
  11.         <prefs version="0.5.1">
  12.             <xsl:apply-templates/>
  13.         </prefs>
  14.     </xsl:template>
  15.     
  16.     <xsl:template match="account">
  17.         <account>
  18.             <xsl:copy-of select="@*"/>
  19.             
  20.             <xsl:apply-templates select="pref[not(@id = 'toolbar-tab-location')]"/>
  21.         </account>
  22.     </xsl:template>
  23.     
  24.     <xsl:template match="pref">
  25.         <pref>
  26.             <xsl:copy-of select="@*"/>
  27.             
  28.             <xsl:if test="(@id = 'toolbar-left-click' or @id = 'toolbar-middle-click') and @value = 4">
  29.                 <xsl:attribute name="value">
  30.                     <xsl:value-of select="//pref[@id = 'toolbar-tab-location']/@value + 5"/>
  31.                 </xsl:attribute>
  32.             </xsl:if>
  33.         </pref>
  34.     </xsl:template>
  35. </xsl:stylesheet>